<script lang="ts" setup>
import { useTableHook } from "@/hooks/useTableMixin"
import tablejson from "./Model/Tablejson";
import formjson from "./Model/Formjson";

const queryApi = '/web/mcbDevice/getMcbDeviceListforPageByParam'
const { search, tableData, total, cachePage } = useTableHook()
const handleTableChange = (e: any) => {
  search(queryApi, e)
}
search(queryApi)

</script>

<template>
  <div class="app-container">
    <CommonForm :formJson="formjson" needReset />
    <CommonTable v-if="tablejson.length > 0" need-index :data="tableData" :total="total" @change="handleTableChange"
                 :tableJson="tablejson">
    </CommonTable>
  </div>
</template>
